<script>
export default {
  globalData: {
    osName: '',
    bluetooth: {
      // 蓝牙连接状态
      deviceId: undefined,
      // 蓝牙设备名称
      deviceName: undefined,
      // 蓝牙设备版本
      deviceVersion: undefined,
      // 单/双环
      deviceCategory: undefined,
      // 蓝牙设备是否已连接
      isLink: false,
      // 蓝牙设备电量
      voltage: 0,
    },
  },
  onLaunch: function() {
    console.log('App Launch')
    let that = this;
    uni.getSystemInfo({
      success: function (res) {
        console.log('初始化', res)
        that.globalData.osName = res.osName;
      }
    });

  },
  onShow: function() {
    console.log('App Show')
  },
  onHide: function() {
    console.log('App Hide')
  }
}
</script>

<style>
/*每个页面公共css */
</style>
